<?php

/**
 * Description of VerSuscritos
 *
 * @author JeyDotC
 * 
 * @export Modules
 */
class VerSuscritos extends Module {

    public function index() {
        $formId = $this->request->get("formId");

        /* @var $preguntas TiposFormularios */
        $preguntas = $this->model->Formularios->getFormulario($formId);
        $suscritos = $this->model->Formularios->getSuscritos($formId);

        $this->assign("downloadLink", $this->route->action("index", array("format" => "xls", "formId" => $formId,)));
        $this->assign("preguntas", $preguntas);
        $this->assign("suscritos", $suscritos);

        $this->display("index");
    }

}

?>
